//
//  PHDeviceManager.h
//  PhnixHome
//
//  Created by Levy Xu on 2018/1/4.
//  Copyright © 2018年 Levy Xu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "PHDevice.h"

#define GPHDeviceManager [PHDeviceManager sharedPHDeviceManager]

UIKIT_EXTERN NSString *const kDeviceCountChangedNotification;
UIKIT_EXTERN NSString *const kDeviceStatusChangedNotification;

@interface PHDeviceManager: NSObject

@property(nonatomic, strong) NSString *userPath;

@property(nonatomic, strong) NSMutableArray *deviceList;

SingletonH(PHDeviceManager)

-(void)initThread;
-(void)destory;

-(void)getBoundDevices:(FinishBlock)finish;

-(BOOL)deviceExist:(PHDevice *)device;

#pragma mark - 保存和删除

-(void)saveDevice:(PHDevice *)device;

-(void)removeDevice:(PHDevice *)device;

@end
